#define _CRT_SECURE_NO_WARNINGS 1



#include <stdio.h>


void* im_memcpy(void* dst, const void* src, size_t num)
{
	void* ret = dst;
	while (num--)
	{
		(*(char*)dst) = (*(char*)src);
		dst = (char*)dst + 1;
		src = (char*)src + 1;
	}
	return ret;
}


int main()
{
	char a[] = { 'a','b','c' };
	char b[] = "cb";
	im_memcpy(a, b, 2);
	return 0;
}